<!--
  @author tanghongjun
  @since 2018/10/19 08:59
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>产品管理</title>
</head>
<body>

<div class="layui-fluid">
    <blockquote class="layui-crumb">
        计价器产品>产品管理>
        <a lay-href="/tariffProduct/list.action">计价器产品管理</a>
    </blockquote>

    <div class="layui-card">

        <div class="layui-split">&nbsp;</div>

        <form method="post" action="/tariffProduct/list.action" id="show_product_list">
            <div class="layui-form" th:include="product/tariff/_query :: query "></div>
        </form>

        <div class="layui-card-body">
            <div th:replace="product/tariff/_table::table"></div>

            <script type="text/html" id="zmn-table-tool">
                <div class="layui-btn-container">
                    <div class="layui-btn-group" th:if="${#authPermit.checkPermit('/tariffProduct/updateStatus.action')}">
                        <button class="layui-btn layui-btn-sm" lay-event="start">上架</button>
                        <button class="layui-btn layui-btn-sm layui-btn-danger" lay-event="stop">下架</button>
                    </div>
                    <div class="layui-btn-group">
                        <button lay-href="/tariffProduct/addEditView.action?productId=0" class="layui-btn layui-btn-sm layui-btn-primary"
                                th:if="${#authPermit.checkPermit('/tariffProduct/addEditView.action')}" lay-text="新增计价器产品" text="新增计价器产品">+新增
                        </button>
                    </div>
                </div>
            </script>
        </div>

    </div>

</div>
</body>
</html>
<script type="text/javascript" th:inline="javascript">

    var json = {
        hasView: [[${#authPermit.checkPermit('/tariffProduct/addEditView.action')}]],
        hasItemInView: [[${#authPermit.checkPermit('/tariffProduct/hasItemInView.action')}]],
        hasItemOutView: [[${#authPermit.checkPermit('/tariffProduct/hasItemOutView.action')}]],
        hasExportExcel: [[${#authPermit.checkPermit('/tariffProduct/outputExcel.action')}]],
        items: [[${items}]],
        baseCategories: [[${baseCategories}]],
        servCategories: [[${servCategories}]],
        priceTypes: [[${priceTypes}]],
        productTypes: [[${productTypes}]],
        totalCount: [[${vo.totalCount}]],
        pageSize: [[${vo.pageSize}]],
        pageIndex: [[${vo.pageIndex}]]
    };

    layui.config({
        version: 2019091211018,
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        product_tariff_list_js: "product/tariff/zmn.plat.product.tariff.list",
    }).use(['index', 'product_tariff_list_js']);

</script>